# app/models/appointment.py
from datetime import datetime, date

class Appointment:
    def __init__(self, user_id, provider_id, date, time_slot, appointment_type, status='scheduled'):
        self.id = id(self)  # Use object's id as a unique identifier
        self.user_id = user_id
        self.provider_id = provider_id
        self.date = date
        self.time_slot = time_slot
        self.appointment_type = appointment_type
        self.status = status
        self.created_at = datetime.now()

class Provider:
    def __init__(self, id, name, type, availability=None):
        self.id = id
        self.name = name
        self.type = type
        self.availability = availability or {}

# Mock data for providers
MOCK_PROVIDERS = [
    Provider(1, "Dr. Smith", "private_doctor"),
    Provider(2, "Dr. Johnson", "private_doctor"),
    Provider(3, "Coach Mike", "private_coach"),
    Provider(4, "Coach Sarah", "private_coach")
]

# Mock data for appointments
MOCK_APPOINTMENTS = []